#include "Move.h"

Move::Move(){
}

Move::Move(int index, QString color,QString name): _index(index),_color(color),_name(name),_comm("no"){
}

Move::Move(int index, QString color, QString name, QString comm) : _index(index),_color(color),_name(name),_comm(comm){
}

Move::Move(int index, QString color, QString name, QString squareBegin, QString squareEnd) : _index(index),_color(color),_name(name),_squareBegin(squareBegin),_squareEnd(squareEnd){
}

Move::Move(int index, QString color, QString name, QString squareBegin, QString squareEnd, QString castlingBegin, QString castlingEnd) : _index(index),_color(color),_name(name),_squareBegin(squareBegin),_squareEnd(squareEnd),_castlingBegin(castlingBegin),_castlingEnd(castlingEnd){
}

void Move::addSquare(QString squareBegin,QString squareEnd) {
    _squareBegin = squareBegin;
    _squareEnd = squareEnd;
}

void Move::addSquare(QString squareBegin,QString squareEnd,QString castlingBegin,QString castlingEnd) {
    _squareBegin = squareBegin;
    _squareEnd = squareEnd;
    _castlingBegin = castlingBegin;
    _castlingEnd = castlingEnd;
}

QString Move::getName() const{
    return _name;
}

QString Move::getColor() const{
    return _color;
}

QString Move::getComm() const{
    return _comm;
}

QString Move::getSquareBegin() const{
    return _squareBegin;
}

QString Move::getSquareEnd() const{
    return  _squareEnd;
}

QString Move::getCastlingBegin() const{
    return _castlingBegin;
}

QString Move::getCastlingEnd() const{
    return  _castlingEnd;
}

Move::~Move(){
}
